Skip to content

Refactor PartitionsSaxHandler to use boost::json#1670

Open
asopov-here wants to merge 6 commits intofeature_boost_jsonfrom
task/OCMAM-448
Open

Refactor PartitionsSaxHandler to use boost::json#1670
asopov-here wants to merge 6 commits intofeature_boost_jsonfrom
task/OCMAM-448

Conversation

@asopov-here
Copy link
Contributor

Relates-To: OCMAM-448

@asopov-here asopov-here force-pushed the task/OCMAM-448 branch 3 times, most recently from 15b17c6 to f501541 Compare February 26, 2026 17:52
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 87.17949% with 10 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (feature_boost_json@d6b6721). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...rvice-read/src/repositories/PartitionsSaxHandler.h 70.83% 7 Missing ⚠️
...ice-read/src/repositories/PartitionsRepository.cpp 85.71% 0 Missing and 2 partials ⚠️
...aservice-read/src/repositories/AsyncJsonStream.cpp 88.89% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##             feature_boost_json    #1670   +/-   ##
=====================================================
  Coverage                      ?   80.39%           
=====================================================
  Files                         ?      351           
  Lines                         ?    14071           
  Branches                      ?     1517           
=====================================================
  Hits                          ?    11312           
  Misses                        ?     2146           
  Partials                      ?      613           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asopov-here asopov-here changed the base branch from master to feature_boost_json February 27, 2026 07:57
@asopov-here asopov-here force-pushed the task/OCMAM-448 branch 4 times, most recently from 5a1ab0f to 79db427 Compare February 27, 2026 10:56
Previously it was based on rapidjson
The tests are adjusted accordingly.

Relates-To: OCMAM-448
Signed-off-by: Alexander Sopov <ext-alexander.sopov@here.com>
Previously it was based on rapidjson
The tests are adjusted accordingly.

Relates-To: OCMAM-448
Signed-off-by: Alexander Sopov <ext-alexander.sopov@here.com>
Previously it was based on rapidjson
The tests are adjusted accordingly.

Relates-To: OCMAM-448
Signed-off-by: Alexander Sopov <ext-alexander.sopov@here.com>
Previously it was based on rapidjson
The tests are adjusted accordingly.

Relates-To: OCMAM-448
Signed-off-by: Alexander Sopov <ext-alexander.sopov@here.com>
namespace repository {

/// Json byte stream class. Implements rapidjson input stream concept.
class RapidJsonByteStream {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is no longer rapidjson then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically it's still rapidjoson-compliant. :)


parse_result = reader.Parse<rapidjson::kParseIterativeFlag>(
*json_stream, *partitions_handler);
while (json_stream->Peek() != '\0') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to have separate function for end detection?

Previously it was based on rapidjson
The tests are adjusted accordingly.

Relates-To: OCMAM-448
Signed-off-by: Alexander Sopov <ext-alexander.sopov@here.com>
Previously it was based on rapidjson
The tests are adjusted accordingly.

Relates-To: OCMAM-448
Signed-off-by: Alexander Sopov <ext-alexander.sopov@here.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants